<!-- 
  blog.html.erb
  Description: Layout for the interface of blog feature
  Created on: April 13, 2012
  Last modified on: March 18, 2013
  Copyright 2013 PIT Solutions Pvt. Ltd. All Rights Reserved.
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>VirtualX - Online Examination System</title>
	<%= favicon_link_tag 'favicon.ico' %>
	
    <%= stylesheet_link_tag "application" %>

	<%= stylesheet_link_tag "style_blog"%>
    <%= javascript_include_tag :defaults %>
	 
    <script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script> 
	<%@setting = Setting.find(:first)%>
	
	<%if t('language.lang') == "en"%>
	<%= javascript_include_tag 'jquery.validationEngine-en', 'jquery.validationEngine'%>
	<%elsif t('language.lang') == "de"%>
	<%= javascript_include_tag 'jquery.validationEngine-de', 'jquery.validationEngine'%>
	<%elsif t('language.lang') == "ar"%>
	<%= javascript_include_tag 'jquery.validationEngine-ar', 'jquery.validationEngine'%>
	<%elsif t('language.lang') == "zh"%>
	<%= javascript_include_tag 'jquery.validationEngine-zh', 'jquery.validationEngine'%>	
	<%end%>
	<%=javascript_include_tag "jquery-ui.min.js"%>
	<%= javascript_include_tag  "jquery-ui-timepicker.js","thickbox" %>
	<%= javascript_include_tag  "autocomplete-rails.js" %>
	<%= csrf_meta_tag %>
	<%= yield(:head) %>
	
  </head>


<body class="bgimg blog header-image content-sidebar focus-black">
<div id="mainWrapper">
	<div class="wrapperContent">

     <%= render :partial => 'layouts/header' %>
     
	<div class="NBLOG">
		<%= render :partial => 'shared/navigation' %>
	</div>
		<%if current_user%>
			<div class="contentWrapper">
		<%else%>
			<div class="contentWrapper" style="margin:0;">
		<%end%>
  	<%if current_user%>
	    <%if current_user.role_id == 1 or current_user.role_id == 2%>
	    <%=link_to t('workflow.link'), {:action=>"workflow", :controller=>"welcome"},:class=>"workflow"%>
		<%end%>
	<%end%>

    <div class="midCol" style="width:auto;">
     <div class="flash_message">   
       <% flash.each do |name, msg| %>
	   <%if name.to_s == "notice"%>
        <%= content_tag :div, msg, :class => "notice" %>
	   <%elsif name.to_s == "success"%>
	   <%= content_tag :div, msg, :class => "success" %>
	   <%elsif name.to_s == "error"%>
	   <%= content_tag :div, msg, :class => "error" %>
	   <%end%>
      <% end %>
     </div> 
      <%= yield %>
	  <div class="clear"></div>
    </div>
	<div class="clear"></div>
  </div>

<div class="clear"></div>
</div>
<div class="clear"></div>
</div>


<div id="footer" style="background-image:none; background-color:#666666">
  <div class="footerContent">
  	
	<div class="footerNav">
      <ul>
        <li class="first"><%= link_to t('about.aboutus'), :action=>"view_aboutus", :controller=>"home"%></li>
        <li><%= link_to t('about.clients'), :action=>"view_clients", :controller=>"home"%></li>
        <li><%= link_to t('about.features'), :action=>"view_features", :controller=>"home"%></li>
        <li><%= link_to t('about.modules'), :action=>"view_modules", :controller=>"home"%></li>
        <li><%= link_to t('about.contactus'), :action=>"view_contactus", :controller=>"home"%></li>
      </ul>
    </div>
	
		<div class="copytxt">
		<p class="copytxt">&copy; PITSolutions Pvt. Ltd., All rights reserved.</p>
		</div>
  </div>


 </div>

<div class="blogleft_button"><%=link_to image_tag ("docSharing/blog_bar.jpg"), blog_path%></div>
 
 <div class="sharingleft_button"><%=link_to image_tag("docSharing/doc_bar.jpg"),:action=>"index",:controller=>"folders"%></div>

<input type="hidden" id="user_id" value="<%=current_user ? current_user.id : ""%>" />

  </body>

</html>


